package com.zsx.controller;

import com.zsx.entity.Zsxadmin;
import com.zsx.service.zsxAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * Created by changkejian+ on 2017/2/12.
 */
@Controller
@RequestMapping("/zsxAdmin")
public class ZsxAdminController {
    @Autowired
    private zsxAdminService zsxAdminService;
    @ResponseBody
    @RequestMapping("/loadZsxAdmin")
    public Zsxadmin loadZsxAdmin(int id)throws Exception{
        return zsxAdminService.selectZsxAdmin(id);
    }
}
